import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// ---------------//引入axios、element-ui及其css
import http from './ajax/http'
import axios from 'axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// ---------------
Vue.config.productionTip = false
axios.defaults.baseURL='/api'
// -------
Vue.prototype.$axios = http
Vue.use(ElementUI)
// -------
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
